package cn.lzy.demo;

/**
 * @Description     房屋中介
 * @Author lzy
 * @Date 2023/12/8 1:49
 * @Version
 **/
public class HouseAgent implements Rent {

    /**
     * 所代理的房东
     */
    private Landlord landlord;


    public HouseAgent(Landlord landlord) {
        this.landlord = landlord;
    }


    @Override
    public void rent() {
        publishGG();
        System.out.println("出租房屋-签合同");
        getAgencyMoney();
    }


    public void publishGG() {
        System.out.println("发布广告招租");
    }

    public void getAgencyMoney() {
        System.out.println("收取中介费");
    }
}
